package com.vip.buycart.dao.impl;

import java.util.HashMap;
import java.util.List;

import com.vip.buycart.entity.ProductCategory;
import com.vip.framework.generic.GenericDaoImpl;

/**
 * 商品种类的DAOImpl
 * 
 * @author sai
 *
 */
public class ProductCategoryDAOImpl extends GenericDaoImpl<ProductCategory> {

	public ProductCategoryDAOImpl(ProductCategory t) {
		super(t);
	}
	
	
	/**
	 * 通过特定条件查询出商品的类别
	 * @param con
	 * @param page
	 * @param rows
	 * @return
	 */
	public List getProductCategory(HashMap<String, String> con,int page,int  rows)
	{
		StringBuffer sql = new StringBuffer();
		sql.append("FROM ProductCategory");
		return  pageListQuery(sql.toString(), page, rows);
	}
	

}
